package com.yunfei.api.v2.enums;

/**
 * 作废电子合同枚举
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum CreateZuoFeiXieYiEnum {
    SUCCESS(0, "成功"),
    NOROLE(-1, "权限不足"),
    CANCEL_CONTRACT_REMARK_NOTNULL(101, "作废协议原因不能为空"),
    CONTRACT_ID_NOTNULL(102, "合同id不能为空"),
    ERROR(2040,"系统错误");


    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    CreateZuoFeiXieYiEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
